home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
160_01
/
unird.c
< prev
next >
Wrap
C/C++ Source or Header
|
1985-11-24
|
347b
|
20 lines
/* unird - universal read distribution
*/
#include <stdio.h>
main()
{
char b[BUFSIZ];
FILE *fp;
do {
gets(b);
} while (strncmp(b, "###", 3) != 0);
while (strncmp(b, "###EOF", 6) != 0)
{
fp = fopen(&b[3], "w");
while (gets(b) != NULL && strncmp(b, "###", 3) != 0)
fprintf(fp, "%s\n", b);
fclose(fp);
}
}